Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Collections.​Generic.​ICollection`1

Assembly: System.Runtime

Defines methods to manipulate generic collections.

Properties

public int
Count
Gets the number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" /> .
public bool
IsReadOnly
Gets a value indicating whether the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.

Methods

public void
Add​(T item)
public void
Clear​()
Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1" /> .
public bool
Contains​(T item)
public void
CopyTo​(T[] array, int arrayIndex)
public bool
Remove​(T item)